package org.zoomdev.zoom.dao.adapters.parameter;

import org.zoomdev.zoom.dao.adapters.ParameterAdapter;

import java.math.BigDecimal;
import java.sql.PreparedStatement;
import java.sql.SQLException;

// 高精度小数适配器
public class BigDecimalParameterAdapter implements ParameterAdapter<BigDecimal> {

    @Override
    public void setNonnullParameter(PreparedStatement ps, int index, BigDecimal data) throws SQLException {
        ps.setBigDecimal(index, data);
    }
}
